Part Number Hot Search : 
VERTICAL CX4005NL 58128 74AC74SJ 1206G 9102A A5800 A2228
Product Description
Full Text Search
 

To Download LPC2132FBD64 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1. general description the lpc2131/32/34/36/38 microcontrollers are based on a 16/32-bit arm7tdmi-s cpu with real-time emulation and embedded trace s upport, that combine the microcontroller with 32 kb, 64 kb, 128 kb, 256 kb and 512 kb of embedded high-speed flash memory. a 128-bit wide memory interface and a unique accelerator architecture enable 32-bit code execution at maximum clock rate. for critical c ode size applications, the alternative 16-bit thumb mode reduces code by more than 30 % with minimal performance penalty. due to their tiny size and low power consumption, these microcontrollers are ideal for applications where miniaturization is a key requirement, such as access control and point-of-sale. with a wide range of serial communications interfaces and on-chip sram options of 8 kb, 16 kb, and 32 kb, they are very well suited for communication gateways and protocol converters, soft modems, voice recognition and low-end imaging, providing both large buffer size and high processing power. various 32-bit timers, single or dual 10-bit 8-channel adc(s) , 10-bit dac, pwm channels and 47 gpio lines with up to nine edge or level sensitive external interrupt pi ns make these microcontrollers particularly suitable for industrial co ntrol and medical systems. 2. features and benefits 2.1 enhancements brought by lpc213x/01 devices ? fast gpio ports enable port pin toggling up to 3.5 times faster than the original lpc213x. they also allow for a port pin to be read at any time regardless of its function. ? dedicated result registers for adc(s) reduce interrupt overhead. ? uart0/1 include fractional baud rate generat or, auto-bauding capabilities and handshake flow-control fully implemented in hardware. ? additional bod control enables furthe r reduction of po wer consumption. 2.2 key features common fo r lpc213x and lpc213x/01 ? 16/32-bit arm7tdmi-s microcontroller in a tiny lqfp64 or hvqfn64 package. ? 8/16/32 kb of on-chip static ram and 32/ 64/128/256/512 kb of on-chip flash program memory. 128-bit wide interface/accelerator enables high-speed 60 mhz operation. ? in-system programming/in-application progra mming (isp/iap) via on-chip bootloader software. single flash sector or full chip erase in 400 ms and programming of 256 b in 1 ms. ? embeddedice rt and embedded trace interfac es offer real-time debugging with the on-chip realmonitor software and high-s peed tracing of instruction execution. lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers; 32/64/128/256/512 kb isp/iap flash with 10-bit adc and dac rev. 5.1 ? 29 july 2011 product data sheet
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 2 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers ? one (lpc2131/32) or two (lpc 2134/36/38) 8-channel 10-bit adcs provide a total of up to 16 analog inputs, with conversion times as low as 2.44 ? s per channel. ? single 10-bit dac provides variable analog output (lpc2132/34/36/38). ? two 32-bit timers/external event counters (with four capture and four compare channels each), pwm unit (six outputs) and watchdog. ? low power real-time clock with independent power and dedicated 32 khz clock input. ? multiple serial interfaces including two uarts (16c550), two fast i 2 c-bus (400 kbit/s), spi and ssp with buffering and vari able data length capabilities. ? vectored interrupt controller with config urable priorities and vector addresses. ? up to forty-seven 5 v tolerant general pu rpose i/o pins in tiny lqfp64 or hvqfn package. ? up to nine edge or level sensitive external interrupt pins available. ? 60 mhz maximum cpu clock available from programmable on-chip pll with settling time of 100 ? s. ? on-chip integrated os cillator operates with external crystal in range of 1 mhz to 30 mhz and with external oscillator up to 50 mhz. ? power saving modes include idle and power-down. ? individual enable/disable of peripheral functions as well as peripheral clock scaling down for additional power optimization. ? processor wake-up from power-down mode via external interrupt or bod. ? single power supply chip with por and bod circuits: ? cpu operating voltage range of 3.0 v to 3.6 v (3.3 v ? 10 %) with 5 v tolerant i/o pads. 3. ordering information table 1. ordering information type number package name description version lpc2131fbd64/01 lqfp64 plastic low profile quad flat package; 64 leads; body 10 ? 10 ? 1.4 mm sot314-2 LPC2132FBD64/01 lqfp64 plastic low profile quad flat package; 64 leads; body 10 ? 10 ? 1.4 mm sot314-2 lpc2132fhn64/01 hvqfn64 plastic thermal enhanced very thin quad flat package; no leads; 64 terminals; body 9 ? 9 ? 0.85 mm sot804-2 lpc2134fbd64/01 lqfp64 plastic low profile quad flat package; 64 leads; body 10 ? 10 ? 1.4 mm sot314-2 lpc2136fbd64/01 lqfp64 plastic low profile quad flat package; 64 leads; body 10 ? 10 ? 1.4 mm sot314-2 lpc2138fbd64/01 lqfp64 plastic low profile quad flat package; 64 leads; body 10 ? 10 ? 1.4 mm sot314-2 lpc2138fhn64/01 hvqfn64 plastic thermal enhanced very thin quad flat package; no leads; 64 terminals; body 9 ? 9 ? 0.85 mm sot804-2
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 3 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers 3.1 ordering options table 2. ordering options type number flash memory ram adc dac enhanced uarts, adc, fast i/os, and bod temperature range lpc2131fbd64/01 32 kb 8 kb 1 - yes ? 40 ? c to +85 ?c LPC2132FBD64/01 64 kb 16 kb 1 1 yes ? 40 ? c to +85 ?c lpc2132fhn64/01 64 kb 16 kb 1 1 yes ? 40 ? c to +85 ?c lpc2134fbd64/01 128 kb 16 kb 2 1 yes ? 40 ? c to +85 ?c lpc2136fbd64/01 256 kb 32 kb 2 1 yes ? 40 ? c to +85 ?c lpc2138fbd64/01 512 kb 32 kb 2 1 yes ? 40 ? c to +85 ?c lpc2138fhn64/01 512 kb 32 kb 2 1 yes ? 40 ? c to +85 ?c
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 4 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers 4. block diagram (1) lpc2134/36/38 only. (2) lpc2132/34/36/38 only. (3) pins shared with gpio. fig 1. block diagram scl0,1 p0[31:0] p1[31:16] p0[31:0] p1[31:16] sda0,1 xtal2 xtal1 sck0,1 mosi0,1 miso0,1 eint[3:0] ad0[7:0] pwm[6:1] ssel0,1 txd0,1 rxd0,1 ahb bridge pll uart0/uart1 real time clock pwm0 arm7tdmi-s reset lpc2131, lpc2131/01 lpc2132, lpc2132/01 lpc2134, lpc2134/01 lpc2136, lpc2136/01 lpc2138, lpc2138/01 8 cap 8 mat ad1[7:0] (1) aout (2) dsr1 (1) ,cts1 (1) rts1 (1) , dtr1 (1) dcd1 (1) , ri1 (1) 002aab067 trst (3) tms (3) tck (3) tdi (3) tdo (3) trace signals fast general purpose i/o internal sram controller internal flash controller 8/16/32 kb sram 32/64/128/ 256/512 kb flash external interrupts capture/ compare timer 0/timer 1 a/d converters 0 and 1 (1) d/a converter (2) general purpose i/o system control watchdog timer rtcx2 rtcx1 spi and ssp serial interfaces i 2 c serial interfaces 0 and 1 apb (arm peripheral bus) ahb to apb bridge apb divider ahb decoder amba ahb (advanced high-performance bus) vectored interrupt controller system functions system clock emulation trace module test/debug interface arm7 local bus vbat
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 5 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers 5. pinning information 5.1 pinning fig 2. lpc2131 lqfp64 pin configuration lpc2131 lpc2131/01 p0.21/pwm5/cap1.3 p1.20/tracesync p0.22/cap0.0/mat0.0 p0.17/cap1.2/sck1/mat1.2 rtcx1 p0.16/eint0/mat0.2/cap0.2 p1.19/tracepkt3 p0.15/eint2 rtcx2 p1.21/pipestat0 v ss v dd v dda v ss p1.18/tracepkt2 p0.14/eint1/sda1 p0.25/ad0.4 p1.22/pipestat1 p0.26/ad0.5 p0.13/mat1.1 p0.27/ad0.0/cap0.1/mat0.1 p0.12/mat1.0 p1.17/tracepkt1 p0.11/cap1.1/scl1 p0.28/ad0.1/cap0.2/mat0.2 p1.23/pipestat2 p0.29/ad0.2/cap0.3/mat0.3 p0.10/cap1.0 p0.30/ad0.3/eint3/cap0.0 p0.9/rxd1/pwm6/eint3 p1.16/tracepkt0 p0.8/txd1/pwm4 p0.31 p1.27/tdo v ss vref p0.0/txd0/pwm1 xtal1 p1.31/trst xtal2 p0.1/rxd0/pwm3/eint0 p1.28/tdi p0.2/scl0/cap0.0 v ssa v dd p0.23 p1.26/rtck reset v ss p1.29/tck p0.3/sda0/mat0.0/eint1 p0.20/mat1.3/ssel1/eint3 p0.4/sck0/cap0.1/ad0.6 p0.19/mat1.2/mosi1/cap1.2 p1.25/extin0 p0.18/cap1.3/miso1/mat1.3 p0.5/miso0/mat0.1/ad0.7 p1.30/tms p0.6/mosi0/cap0.2 v dd p0.7/ssel0/pwm2/eint2 v ss p1.24/traceclk vbat 002aab068 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 6 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers fig 3. lpc2132 lqfp64 pin configuration lpc2132 lpc2132/01 p0.21/pwm5/cap1.3 p1.20/tracesync p0.22/cap0.0/mat0.0 p0.17/cap1.2/sck1/mat1.2 rtcx1 p0.16/eint0/mat0.2/cap0.2 p1.19/tracepkt3 p0.15/eint2 rtcx2 p1.21/pipestat0 v ss v dd v dda v ss p1.18/tracepkt2 p0.14/eint1/sda1 p0.25/ad0.4/aout p1.22/pipestat1 p0.26/ad0.5 p0.13/mat1.1 p0.27/ad0.0/cap0.1/mat0.1 p0.12/mat1.0 p1.17/tracepkt1 p0.11/cap1.1/scl1 p0.28/ad0.1/cap0.2/mat0.2 p1.23/pipestat2 p0.29/ad0.2/cap0.3/mat0.3 p0.10/cap1.0 p0.30/ad0.3/eint3/cap0.0 p0.9/rxd1/pwm6/eint3 p1.16/tracepkt0 p0.8/txd1/pwm4 p0.31 p1.27/tdo v ss vref p0.0/txd0/pwm1 xtal1 p1.31/trst xtal2 p0.1/rxd0/pwm3/eint0 p1.28/tdi p0.2/scl0/cap0.0 v ssa v dd p0.23 p1.26/rtck reset v ss p1.29/tck p0.3/sda0/mat0.0/eint1 p0.20/mat1.3/ssel1/eint3 p0.4/sck0/cap0.1/ad0.6 p0.19/mat1.2/mosi1/cap1.2 p1.25/extin0 p0.18/cap1.3/miso1/mat1.3 p0.5/miso0/mat0.1/ad0.7 p1.30/tms p0.6/mosi0/cap0.2 v dd p0.7/ssel0/pwm2/eint2 v ss p1.24/traceclk vbat 002aab406 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 7 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers fig 4. lpc2134/36/38 lqfp64 pin configuration lpc2134, lpc2134/01 lpc2136, lpc2136/01 lpc2138, lpc2138/01 p0.21/pwm5/ad1.6/cap1.3 p1.20/tracesync p0.22/ad1.7/cap0.0/mat0.0 p0.17/cap1.2/sck1/mat1.2 rtcx1 p0.16/eint0/mat0.2/cap0.2 p1.19/tracepkt3 p0.15/ri1/eint2/ad1.5 rtcx2 p1.21/pipestat0 v ss v dd v dda v ss p1.18/tracepkt2 p0.14/dcd1/eint1/sda1 p0.25/ad0.4/aout p1.22/pipestat1 p0.26/ad0.5 p0.13/dtr1/mat1.1/ad1.4 p0.27/ad0.0/cap0.1/mat0.1 p0.12/dsr1/mat1.0/ad1.3 p1.17/tracepkt1 p0.11/cts1/cap1.1/scl1 p0.28/ad0.1/cap0.2/mat0.2 p1.23/pipestat2 p0.29/ad0.2/cap0.3/mat0.3 p0.10/rts1/cap1.0/ad1.2 p0.30/ad0.3/eint3/cap0.0 p0.9/rxd1/pwm6/eint3 p1.16/tracepkt0 p0.8/txd1/pwm4/ad1.1 p0.31 p1.27/tdo v ss vref p0.0/txd0/pwm1 xtal1 p1.31/trst xtal2 p0.1/rxd0/pwm3/eint0 p1.28/tdi p0.2/scl0/cap0.0 v ssa v dd p0.23 p1.26/rtck reset v ss p1.29/tck p0.3/sda0/mat0.0/eint1 p0.20/mat1.3/ssel1/eint3 p0.4/sck0/cap0.1/ad0.6 p0.19/mat1.2/mosi1/cap1.2 p1.25/extin0 p0.18/cap1.3/miso1/mat1.3 p0.5/miso0/mat0.1/ad0.7 p1.30/tms p0.6/mosi0/cap0.2/ad1.0 v dd p0.7/ssel0/pwm2/eint2 v ss p1.24/traceclk vbat 002aab407 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 8 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers ad1.7 to ad1.0 only available on lpc2134/36/38. fig 5. lpc2132/38 hvqfn64 pin configuration 002aab943 lpc2132/2138 transparent top view 16 33 15 34 14 35 13 36 12 37 11 38 10 39 9 40 8 41 7 42 6 43 5 44 4 45 3 46 2 47 1 48 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 terminal 1 index area p0.21/pwm5/ad1.6/cap1.3 p0.22/ad1.7/cap0.0/mat0.0 rtcx1 p1.19/tracepkt3 rtcx2 v ss v dda p1.18/tracepkt2 p0.25/ad0.4/aout p0.26/ad0.5 p0.27/ad0.0/cap0.1/mat0.1 p1.17/tracepkt1 p0.28/ad0.1/cap0.2/mat0.2 p0.29/ad0.2/cap0.3/mat0.3 p0.30/ad0.3/eint3/cap0.0 p1.16/tracepkt0 p1.27/tdo vref xtal1 xtal2 p1.28/tdi v ssa p0.23 reset p1.29/tck p0.20/mat1.3/ssel1/eint3 p0.19/mat1.2/mosi1/cap1.2 p0.18/cap1.3/miso1/mat1.3 p1.30/tms v dd v ss vbat p1.20/tracesync p0.17/cap1.2/sck1/mat1.2 p0.16/eint0/mat0.2/cap0.2 p0.15/ri1/eint2/ad1.5 p1.21/pipestat0 v dd v ss p0.14/dcd1/eint1/sda1 p1.22/pipestat1 p0.13/dtr1/mat1.1/ad1.4 p0.12/dsr1/mat1.0/ad1.3 p0.11/cts1/cap1.1/scl1 p1.23/pipestat2 p0.10/rts1/cap1.0/ad1.2 p0.9/rxd1/pwm6/eint3 p0.8/txd1/pwm4/ad1.1 p0.31 v ss p0.0/txd0/pwm1 p1.31/trst p0.1/rxd0/pwm3/eint0 p0.2/scl0/cap0.0 v dd p1.26/rtck v ss p0.3/sda0/mat0.0/eint1 p0.4/sck0/cap0.1/ad0.6 p1.25/extin0 p0.5/miso0/mat0.1/ad0.7 p0.6/mosi0/cap0.2/ad1.0 p0.7/ssel0/pwm2/eint2 p1.24/traceclk
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 9 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers 5.2 pin description table 3. pin description symbol pin type description p0.0 to p0.31 i/o port 0: port 0 is a 32-bit i/o port with individual direction controls for each bit. total of 31 pins of the port 0 can be used as a gener al purpose bidirectional digital i/os while p0.31 is output only pin. the operation of port 0 pins depends upon the pin function selected via the pin connect block. pin p0.24 is not available. p0.0/txd0/ pwm1 19 [1] o txd0 ? transmitter output for uart0. o pwm1 ? pulse width modulator output 1. p0.1/rxd0/ pwm3/eint0 21 [2] i rxd0 ? receiver input for uart0. o pwm3 ? pulse width modulator output 3. i eint0 ? external interrupt 0 input. p0.2/scl0/ cap0.0 22 [3] i/o scl0 ? i 2 c0 clock input/output. open drain output (for i 2 c-bus compliance). i cap0.0 ? capture input for timer 0, channel 0. p0.3/sda0/ mat0.0/eint1 26 [3] i/o sda0 ? i 2 c0 data input/output. open drain output (for i 2 c-bus compliance). o mat0.0 ? match output for timer 0, channel 0. i eint1 ? external interrupt 1 input. p0.4/sck0/ cap0.1/ad0.6 27 [4] i/o sck0 ? serial clock for spi0. spi clock output from master or input to slave. i cap0.1 ? capture input for timer 0, channel 1. i ad0.6 ? adc 0, input 6. this analog input is always connected to its pin. p0.5/miso0/ mat0.1/ad0.7 29 [4] i/o miso0 ? master in slave v dd = 3.6 v for spi0. data input to spi master or data output from spi slave. o mat0.1 ? match output for timer 0, channel 1. i ad0.7 ? adc 0, input 7. this analog input is always connected to its pin. p0.6/mosi0/ cap0.2/ad1.0 30 [4] i/o mosi0 ? master out slave in for spi0. data outp ut from spi master or data input to spi slave. i cap0.2 ? capture input for timer 0, channel 2. i ad1.0 ? adc 1, input 0. this analog input is a lways connected to its pin. available in lpc2134/36/38 only. p0.7/ssel0/ pwm2/eint2 31 [2] i ssel0 ? slave select for spi0. selects the spi interface as a slave. o pwm2 ? pulse width modulator output 2. i eint2 ? external interrupt 2 input. p0.8/txd1/ pwm4/ad1.1 33 [4] o txd1 ? transmitter output for uart1. o pwm4 ? pulse width modulator output 4. i ad1.1 ? adc 1, input 1. this analog input is a lways connected to its pin. available in lpc2134/36/38 only. p0.9/rxd1/ pwm6/eint3 34 [2] i rxd1 ? receiver input for uart1. o pwm6 ? pulse width modulator output 6. i eint3 ? external interrupt 3 input. p0.10/rts1/ cap1.0/ad1.2 35 [4] o rts1 ? request to send output for uart1. available in lpc2134/36/38. i cap1.0 ? capture input for timer 1, channel 0. i ad1.2 ? adc 1, input 2. this analog input is a lways connected to its pin. available in lpc2134/36/38 only.
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 10 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers p0.11/cts1/ cap1.1/scl1 37 [3] i cts1 ? clear to send input for uart1. available in lpc2134/36/38. i cap1.1 ? capture input for timer 1, channel 1. i/o scl1 ? i 2 c1 clock input/output. open drain output (for i 2 c-bus compliance) p0.12/dsr1/ mat1.0/ad1.3 38 [4] i dsr1 ? data set ready input for uart1. available in lpc2134/36/38. o mat1.0 ? match output for timer 1, channel 0. i ad1.3 ? adc 1, input 3. this analog input is a lways connected to its pin. available in lpc2134/36/38 only. p0.13/dtr1/ mat1.1/ad1.4 39 [4] o dtr1 ? data terminal ready output for uart1. available in lpc2134/36/38. o mat1.1 ? match output for timer 1, channel 1. i ad1.4 ? adc 1, input 4. this analog input is a lways connected to its pin. available in lpc2134/36/38 only. p0.14/dcd1/ eint1/sda1 41 [3] i dcd1 ? data carrier detect input for uart1. available in lpc2134/36/38. i eint1 ? external interrupt 1 input. i/o sda1 ? i 2 c1 data input/output. open drain output (for i 2 c-bus compliance). p0.15/ri1/ eint2/ad1.5 45 [4] i ri1 ? ring indicator input for uart1. available in lpc2134/36/38. i eint2 ? external interrupt 2 input. i ad1.5 ? adc 1, input 5. this analog input is a lways connected to its pin. available in lpc2134/36/38 only. p0.16/eint0/ mat0.2/cap0.2 46 [2] i eint0 ? external interrupt 0 input. o mat0.2 ? match output for timer 0, channel 2. i cap0.2 ? capture input for timer 0, channel 2. p0.17/cap1.2/ sck1/mat1.2 47 [1] i cap1.2 ? capture input for timer 1, channel 2. i/o sck1 ? serial clock for ssp. clock output from master or input to slave. o mat1.2 ? match output for timer 1, channel 2. p0.18/cap1.3/ miso1/mat1.3 53 [1] i cap1.3 ? capture input for timer 1, channel 3. i/o miso1 ? master in slave out for ssp. data input to spi master or data output from ssp slave. o mat1.3 ? match output for timer 1, channel 3. p0.19/mat1.2/ mosi1/cap1.2 54 [1] o mat1.2 ? match output for timer 1, channel 2. i/o mosi1 ? master out slave in for ssp. data outp ut from ssp master or data input to ssp slave. i cap1.2 ? capture input for timer 1, channel 2. p0.20/mat1.3/ ssel1/eint3 55 [2] o mat1.3 ? match output for timer 1, channel 3. i ssel1 ? slave select for ssp. select s the ssp interface as a slave. i eint3 ? external interrupt 3 input. p0.21/pwm5/ ad1.6/cap1.3 1 [4] o pwm5 ? pulse width modulator output 5. i ad1.6 ? adc 1, input 6. this analog input is a lways connected to its pin. available in lpc2134/36/38 only. i cap1.3 ? capture input for timer 1, channel 3. p0.22/ad1.7/ cap0.0/mat0.0 2 [4] i ad1.7 ? adc 1, input 7. this analog input is a lways connected to its pin. available in lpc2134/36/38 only. i cap0.0 ? capture input for timer 0, channel 0. o mat0.0 ? match output for timer 0, channel 0. table 3. pin description ?continued symbol pin type description
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 11 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers p0.23 58 [1] i/o general purpose digital input/output pin. p0.25/ad0.4/ aout 9 [5] i ad0.4 ? adc 0, input 4. this analog input is always connected to its pin. o aout ? dac output. not available in lpc2131. p0.26/ad0.5 10 [4] i ad0.5 ? adc 0, input 5. this analog input is always connected to its pin. p0.27/ad0.0/ cap0.1/mat0.1 11 [4] i ad0.0 ? adc 0, input 0. this analog input is always connected to its pin. i cap0.1 ? capture input for timer 0, channel 1. o mat0.1 ? match output for timer 0, channel 1. p0.28/ad0.1/ cap0.2/mat0.2 13 [4] i ad0.1 ? adc 0, input 1. this analog input is always connected to its pin. i cap0.2 ? capture input for timer 0, channel 2. o mat0.2 ? match output for timer 0, channel 2. p0.29/ad0.2/ cap0.3/mat0.3 14 [4] i ad0.2 ? adc 0, input 2. this analog input is always connected to its pin. i cap0.3 ? capture input for timer 0, channel 3. o mat0.3 ? match output for timer 0, channel 3. p0.30/ad0.3/ eint3/cap0.0 15 [4] i ad0.3 ? adc 0, input 3. this analog input is always connected to its pin. i eint3 ? external interrupt 3 input. i cap0.0 ? capture input for timer 0, channel 0. p0.31 17 [6] o general purpose digital output only pin. important: this pin must not be exte rnally pulled low when reset pin is low or the jtag port will be disabled. p1.0 to p1.31 i/o port 1: port 1 is a 32-bit bidirectional i/o port with individual direction controls for each bit. the operation of port 1 pins depends upon the pin function selected via the pin connect block. pins 0 through 15 of port 1 are not available. p1.16/ tracepkt0 16 [6] o tracepkt0 ? trace packet, bit 0. standard i/o port with internal pull-up. p1.17/ tracepkt1 12 [6] o tracepkt1 ? trace packet, bit 1. standard i/o port with internal pull-up. p1.18/ tracepkt2 8 [6] o tracepkt2 ? trace packet, bit 2. standard i/o port with internal pull-up. p1.19/ tracepkt3 4 [6] o tracepkt3 ? trace packet, bit 3. standard i/o port with internal pull-up. p1.20/ tracesync 48 [6] o tracesync ? trace synchronization. standard i/o port with internal pull-up. low on tracesync while reset is low enables pins p1.25: 16 to operate as trace port after reset. p1.21/ pipestat0 44 [6] o pipestat0 ? pipeline status, bit 0. standard i/o port with internal pull-up. p1.22/ pipestat1 40 [6] o pipestat1 ? pipeline status, bit 1. standard i/o port with internal pull-up. p1.23/ pipestat2 36 [6] o pipestat2 ? pipeline status, bit 2. standard i/o port with internal pull-up. p1.24/ traceclk 32 [6] o traceclk ? trace clock. standard i/o port with internal pull-up. p1.25/extin0 28 [6] i extin0 ? external trigger input. standar d i/o with internal pull-up. table 3. pin description ?continued symbol pin type description
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 12 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers [1] 5 v tolerant pad providing digital i/o functions with ttl levels and hysteresis and 10 ns slew rate control. [2] 5 v tolerant pad providing digital i/o functions with ttl leve ls and hysteresis and 10 ns slew rate control. if configured for an input function, this pad utilizes built-in glitch filter that blocks pulses shorter than 3 ns. [3] open drain 5 v tolerant digital i/o i 2 c-bus 400 khz specification compatible pad. it requires external pull-up to provide an output functionality. [4] 5 v tolerant pad providing digital i/o (with ttl levels and hy steresis and 10 ns slew rate c ontrol) and analog input function. if configured for an input function, this pad utilizes bui lt-in glitch filter that blocks pulses shorter than 3 ns. when configured as an adc input, digital section of the pad is disabled. [5] 5 v tolerant pad providing digital i/o (with ttl levels and h ysteresis and 10 ns slew rate control) and analog output function . when configured as the dac output, digita l section of the pad is disabled. [6] 5 v tolerant pad with built-in pull-up resistor providing digi tal i/o functions with ttl levels and hysteresis and 10 ns slew rate control. the pull-up resistor?s value ranges from 60 k ? to 300 k ? . [7] 5 v tolerant pad providing digital input (with ttl levels and hysteresis) function only. [8] pad provides special analog functionality. [9] when unused, the rtcx1 pin can be grounded or left floating. for lowest power leave it floating. the other rtc pin, rtcx2, should be left floating. p1.26/rtck 24 [6] i/o rtck ? returned test clock output. extra signa l added to the jtag port. assists debugger synchronization when processor frequency varies. bidirectional pin with internal pull-up. low on rtck while reset is low enables pins p1.31:26 to operate as debug port after reset. p1.27/tdo 64 [6] o tdo ? test data out for jtag interface. p1.28/tdi 60 [6] i tdi ? test data in for jtag interface. p1.29/tck 56 [6] i tck ? test clock for jtag interface. p1.30/tms 52 [6] i tms ? test mode select for jtag interface. p1.31/trst 20 [6] i trst ? test reset for jtag interface. reset 57 [7] i external reset input: a low on this pin resets the device, causing i/o ports and peripherals to take on their default states, and processor execution to begin at address 0. ttl with hysteresis, 5 v tolerant. xtal1 62 [8] i input to the oscillator circuit and internal clock generator circuits. xtal2 61 [8] o output from the oscillator amplifier. rtcx1 3 [9] i input to the rtc oscillator circuit. rtcx2 5 [9] o output from the rtc oscillator circuit. v ss 6, 18, 25, 42, 50 i ground: 0 v reference. v ssa 59 i analog ground: 0 v reference. this should nominally be the same voltage as v ss , but should be isolated to minimize noise and error. v dd 23, 43, 51 i 3.3 v power supply: this is the power supply voltage for the core and i/o ports. v dda 7i analog 3.3 v power supply: this should be nominally the same voltage as v dd but should be isolated to minimize noise and error. this voltage is used to power the on-chip pll. vref 63 i adc reference: this should be nominally the same voltage as v dd but should be isolated to minimize noise and error. level on this pin is used as a reference for a/d and d/a convertor(s). vbat 49 i rtc power supply: 3.3 v on this pin supplies the power to the rtc. table 3. pin description ?continued symbol pin type description
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 13 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers 6. functional description 6.1 architectural overview the arm7tdmi-s is a general purpose 32-b it microprocessor, which offers high performance and very low power consumpt ion. the arm architecture is based on reduced instruction set comput er (risc) principles, and the instruction set and related decode mechanism are much simpler than those of microprogrammed complex instruction set computers. this simplicity re sults in a high instruction throughput and impressive real-time interrupt response from a small and cost-effective processor core. pipeline techniques are employed so that all parts of the processing and memory systems can operate continuously. typically, while one instruction is being executed, its successor is being decoded, and a third instruction is being fetched from memory. the arm7tdmi-s processor also employs a unique architectural strategy known as thumb, which makes it ideally suited to high-volume applications with memory restrictions, or applications where code density is an issue. the key idea behind thumb is that of a super-reduced instruction set. essentially, the arm7tdmi-s processor has two instruction sets: ? the standard 32-bit arm set. ? a 16-bit thumb set. the thumb set?s 16-bit instru ction length allows it to approach twice the density of standard arm code while retaining most of the arm?s performance advantage over a traditional 16-bit processor using 16-bit regist ers. this is possible because thumb code operates on the same 32-bit register set as arm code. thumb code is able to provide up to 65 % of the code size of arm, and 160 % of the performance of an equivalent arm processo r connected to a 16-bit memory system. 6.2 on-chip flash program memory the lpc2131/32/34/36/38 incorporate a 32 kb, 64 kb, 128 kb, 256 kb and 512 kb flash memory system respectively. this memory may be used for both code and data storage. programming of the flash memory may be accomplished in several ways. it may be programmed in system via the serial port. the application program may also erase and/or program the flash while the application is running, allowing a great degree of flexibility for data storage field firmware upgrades, et c. when the lpc2131/32/34/36/38 on-chip bootloader is used, 32/64/128/256/500 kb of flash memory is available for user code. the lpc2131/32/34/36/38 flash memory pr ovides a minimum of 100000 erase/write cycles and 20 years of data-retention. 6.3 on-chip static ram on-chip static ram may be used for code and/or data storage. the sram may be accessed as 8-bit, 16-bit, and 32-bit. the lpc2131, lpc2132/34, and lpc2136/38 provide 8 kb, 16 kb and 32 kb of static ram respectively.
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 14 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers 6.4 memory map the lpc2131/32/34/36/38 memory map incorpor ates several distinct regions, as shown in figure 6 . in addition, the cpu interrupt vectors may be re-mapped to allow them to reside in either flash memory (the default) or on-chip static ram. this is described in section 6.18 ? system control ? . fig 6. lpc2131/32/34/36/38 memory map ahb peripherals apb peripherals reserved address space reserved address space boot block (re-mapped from on-chip flash memory reserved address space total of 32 kb on-chip static ram (lpc2136/38) total of 16 kb on-chip static ram (lpc2132/34) total of 8 kb on-chip static ram (lpc2131) total of 512 kb on-chip non-volatile memory (lpc2138) total of 256 kb on-chip non-volatile memory (lpc2136) total of 128 kb on-chip non-volatile memory (lpc2134) 0xffff ffff 0xf000 0000 0xe000 0000 0xc000 0000 0x8000 0000 0x4000 4000 0x4000 3fff 0x4000 2000 0x4000 1fff 0x4001 8000 0x4000 7fff 0x4000 0000 0x0004 0000 0x0003 ffff 0x0002 0000 0x0001 ffff 0x0008 0000 0x0007 ffff 0x0001 0000 4.0 gb 3.75 gb 3.5 gb 3.0 gb 2.0 gb 1.0 gb total of 64 kb on-chip non-volatile memory (lpc2132) total of 32 kb on-chip non-volatile memory (lpc2131) 0x0000 ffff 0x0000 8000 0x0000 7fff 0x0000 0000 0.0 gb 002aab069
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 15 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers 6.5 interrupt controller the vectored interrupt controller (vic) accepts all of the interrupt request inputs and categorizes them as fa st interrupt request (f iq), vectored interrup t request (irq), and non-vectored irq as defined by programmable settings. the programmable assignment scheme means that priorities of interrupts fr om the various peripherals can be dynamically assigned and adjusted. fiq has the highest priority. if more than one request is assigned to fiq, the vic combines the requests to produce the fiq signal to the arm processor. the fastest possible fiq latency is achieved when only one request is classified as fiq, because then the fiq service routine can simply start dea ling with that device. but if more than one request is assigned to the fiq class, the fiq service routine can read a word from the vic that identifies which fiq source(s) is (are) requesting an interrupt. vectored irqs have the middle priority. sixtee n of the interrupt requests can be assigned to this category. any of the interrupt requests can be assigned to any of the 16 vectored irq slots, among which slot 0 has the highest priority and slot 15 has the lowest. non-vectored irqs have the lowest priority. the vic combines the requests from all the vectored and non-vectored irqs to produce the irq signal to the arm processor. the irq service routine can start by reading a register from the vic and jumping there. if any of the vectored irqs are requesting, the vic provides the address of the highest-pr iority requesting irqs service routine, otherwise it provides the address of a default routine that is shared by all the non-vectored irqs. the default routine can read another vi c register to see what irqs are active. 6.5.1 interrupt sources ta b l e 4 lists the interrupt sources for each peripheral function. each peripheral device has one interrupt line connected to the vectored interrupt controller, but may have several internal interrupt flags. individual interrupt flags may also represent more than one interrupt source. table 4. interrupt sources block flag(s) vic channel # wdt watchdog interrupt (wdint) 0 - reserved for software interrupts only 1 arm core embeddedice, dbgcommrx 2 arm core embeddedice, dbgcommtx 3 timer0 match 0 to 3 (mr0, mr1, mr2, mr3) capture 0 to 3 (cr0, cr1, cr2, cr3) 4 timer1 match 0 to 3 (mr0, mr1, mr2, mr3) capture 0 to 3 (cr0, cr1, cr2, cr3) 5 uart0 rx line status (rls) transmit holding register empty (thre) rx data available (rda) character time-out indicator (cti) 6
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 16 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers 6.6 pin connect block the pin connect block allows selected pins of the microcontroller to have more than one function. configuration registers control the multiplexers to allow connection between the pin and the on chip peripherals. peripherals should be connected to the appropriate pins prior to being activated, and prior to any related interrupt(s) being enabled. activity of any enabled peripheral function that is not ma pped to a related pin should be considered undefined. 6.7 general purpose parall el i/o and fast i/o device pins that are not connec ted to a specific peripheral function are controlled by the gpio registers. pins may be dynamically conf igured as inputs or outputs. separate registers allow setting or clearing any number of outputs simultaneously. the value of the output register may be read back, as we ll as the current state of the port pins. 6.7.1 features ? direction control of individual bits. ? separate control of output set and clear. ? all i/o default to inputs after reset. uart1 rx line status (rls) transmit holding register empty (thre) rx data available (rda) character time-out indicator (cti) modem status interrupt (msi) (available in lpc2134/36/38 only) 7 pwm0 match 0 to 6 (mr0, mr1, mr2, mr3, mr4, mr5, mr6) capture 0 to 3 (cr0, cr1, cr2, cr3) 8 i 2 c0 si (state change) 9 spi0 spif, modf 10 ssp tx fifo at least half empty (txris) rx fifo at least half full (rxris) receive timeout (rtris) receive overrun (rorris) 11 pll pll lock (plock) 12 rtc rtccif (counter increment), rtcalf (alarm) 13 system control external interrupt 0 (eint0) 14 external interrupt 1 (eint1) 15 external interrupt 2 (eint2) 16 external interrupt 3 (eint3) 17 ad0 adc 0 18 i2c1 si (state change) 19 bod brown out detect 20 ad1 adc 1 (available in lpc2134/36/38 only) 21 table 4. interrupt sources ?continued block flag(s) vic channel #
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 17 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers 6.7.2 fast i/o features available in lpc213x/01 only ? fast i/o registers are located on the arm lo cal bus for the fastest possible i/o timing. ? all gpio registers are byte addressable. ? entire port value can be written in one instruction. ? mask registers allow single instruction to set or clear any number of bits in one port. 6.8 10-bit adc the lpc2131/32 contain one and the lpc2134/36/38 contain two adcs. these converters are single 10-bit successive approximation adcs with eight multiplexed channels. 6.8.1 features ? measurement range of 0 v to 3.3 v. ? each converter capable of performing more than 400000 10-bit samples per second. ? burst conversion mode for single or multiple inputs. ? optional conversion on transition on input pin or timer match signal. ? global start command for both converters (lpc2134/36/38 only). 6.8.2 adc features avail able in lpc213x/01 only ? every analog input has a dedicated result register to reduce interrupt overhead. ? every analog input can generate an interrupt once the conversion is completed. 6.9 10-bit dac this peripheral is available in the lp c2132/34/36/38 only. the dac enables the lpc2132/34/36/38 to generate variable analog output. 6.9.1 features ? 10-bit digital to analog converter. ? buffered output. ? power-down mode available. ? selectable speed versus power. 6.10 uarts the lpc2131/32/34/36/38 each contain two ua rts. in addition to standard transmit and receive data lines, the lpc2134/36/38 uart1 also provides a full modem control handshake interface. 6.10.1 features ? 16 b receive and transmit fifos. ? register locations conform to 16c550 industry standard. ? receiver fifo trigger points at 1 b, 4 b, 8 b, and 14 b
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 18 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers ? built-in baud rate generator. ? standard modem interface signals incl uded on uart1. (lpc2134/36/38 only) ? the lpc2131/32/34/36/38 transmission fi fo control enables implementation of software (xon/xoff) flow control on both uarts and hardware (cts/rts) flow control on the lpc2134/36/38 uart1 only. 6.10.2 uart features available in lpc213x/01 only ? fractional baud rate generator enables standard baud rates such as 115200 to be achieved with any crystal frequency above 2 mhz. ? auto-bauding. ? auto-cts/rts flow-control fully implem ented in hardware (lpc2134/36/38 only). 6.11 i 2 c-bus serial i/o controller the lpc2131/32/34/36/38 each contain two i 2 c-bus controllers. the i 2 c-bus is bidirectional, for inter-ic contro l using only two wires: a serial clock line (scl), and a serial data line (sda). each device is recognized by a unique address and can operate as either a receiver-only device (e .g., an lcd driver or a transmitter with the capability to both receive and send information (such as me mory)). transmitters and/or receivers can operate in either master or sl ave mode, depending on whether the chip has to initiate a data transfer or is only addressed. the i 2 c-bus is a multi-mast er bus, it can be controlled by more than one bus master connected to it. this i 2 c-bus implementation supports bit rates up to 400 kbit/s (fast i 2 c). 6.11.1 features ? standard i 2 c compliant bus interface. ? easy to configure as master, slave, or master/slave. ? programmable clocks allow versatile rate control. ? bidirectional data transfer between masters and slaves. ? multi-master bus (no central master). ? arbitration between simultaneously transmit ting masters without corruption of serial data on the bus. ? serial clock synchronization allows devices with different bit rates to communicate via one serial bus. ? serial clock synchronization can be used as a handshake mechanism to suspend and resume serial transfer. ? the i 2 c-bus may be used for test and diagnostic purposes. 6.12 spi serial i/o controller the lpc2131/32/34/36/38 each contain one spi controller. the spi is a full duplex serial interface, designed to be able to handle mu ltiple masters and slaves connected to a given bus. only a single master and a single slave can communicate on the interface during a given data transfer. during a data transfer the master always sends a byte of data to the slave, and the slave always sends a byte of data to the master.
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 19 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers 6.12.1 features ? compliant with serial peripheral interface (spi) specification. ? synchronous, serial, full duplex, communication. ? combined spi master and slave. ? maximum data bit rate of one eighth of the input clock rate. 6.13 ssp serial i/o controller the lpc2131/32/34/ 36/38 each contain one serial synchronous port controller (ssp). the ssp controller is capable of operation on a spi, 4-wire ssi, or microwire bus. it can interact with multiple masters and slaves on the bus. however, only a single master and a single slave can communicate on the bus during a given da ta transfer. the ssp supports full duplex transfers, with frames of 4 bits to 16 bits of data flowing from the master to the slave and from the slave to the master. often only one of these data flows carries meaningful data. 6.13.1 features ? compatible with motorola spi, 4-wire ti ssi and national semiconductor microwire buses. ? synchronous serial communication. ? master or slave operation. ? 8-frame fifos for both transmit and receive. ? four bits to 16 bits per frame. 6.14 general purpose timers /external event counters the timer/counter is designed to count cycles of the peripheral clock (pclk) or an externally supplied clock, and optionally generate interrupts or perform other actions at specified timer values, based on four match regi sters. it also includes four capture inputs to trap the timer value when an input signal transitions, optionally generating an interrupt. multiple pins can be selected to perform a si ngle capture or match function, providing an application with ?or? and ?and?, as well as ?broadcast? functions among them. at any given time only one of peripheral?s ca pture inputs can be selected as an external event signal source, i.e., timer?s clock. th e rate of external events that can be successfully counted is limited to pclk/2. in this configuration, unused capture lines can be selected as regular timer capture inputs. 6.14.1 features ? a 32-bit timer/counter with a programmable 32-bit prescaler. ? external event counter or timer operation. ? four 32-bit capture channels per timer/counte r that can take a snapshot of the timer value when an input signal transitions. a capture event may also optionally generate an interrupt. ? four 32-bit match registers that allow: ? continuous operation with optional interrupt generation on match.
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 20 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers ? stop timer on match with optional interrupt generation. ? reset timer on match with optional interrupt generation. ? four external outputs per timer/counter co rresponding to match registers, with the following capabilities: ? set low on match. ? set high on match. ? toggle on match. ? do nothing on match. 6.15 watchdog timer the purpose of the watchdog is to reset the mi crocontroller within a reasonable amount of time if it enters an erroneous state. when enabl ed, the watchdog w ill generate a system reset if the user program fails to ?feed? (o r reload) the watchdog within a predetermined amount of time. 6.15.1 features ? internally resets chip if not period ically reloaded. ? debug mode. ? enabled by software but requires a hardware reset or a watchdog reset/interrupt to be disabled. ? incorrect/incomplete feed sequence causes reset/interrupt if enabled. ? flag to indicate watchdog reset. ? programmable 32-bit timer with internal pre-scaler. ? selectable time period from (t cy(pclk) ? 256 ? 4) to (t cy(pclk) ? 2 32 ? 4) in multiples of t cy(pclk) ? 4. 6.16 real-time clock the real-time clock (rtc) is designed to pr ovide a set of counters to measure time when normal or idle operating mode is selected. the rtc has been designed to use little power, making it suitable for battery powered systems where the cpu is not running continuously (idle mode). 6.16.1 features ? measures the passage of time to maintain a calendar and clock. ? ultra-low power design to support battery powered systems. ? provides seconds, minutes, hours, day of month, month, year, day of week, and day of year. ? can use either the rtc dedicated 32 khz oscillator input or clock derived from the external crystal/oscillator input at xtal 1. programmable re ference clock divider allows fine adjustment of the rtc. ? dedicated power supply pin can be connected to a battery or the main 3.3 v.
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 21 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers 6.17 pulse width modulator the pwm is based on the standard timer block and inherits all of its features, although only the pwm function is pinned out on th e lpc2131/32/34/36/38. the timer is designed to count cycles of the peripheral clock (p clk) and optionally generate interrupts or perform other actions when specified timer va lues occur, based on seven match registers. the pwm function is also based on match register events. the ability to separately contro l rising and falling edge locations allo ws the pwm to be used for more applications. for instance, mu lti-phase motor control typically requires three non-overlapping pwm outputs with individual control of all three pulse widths and positions. two match registers can be used to provide a single edge controlled pwm output. one match register (mr0) controls the pwm cycl e rate, by resetting t he count upon match. the other match register controls the pw m edge position. additional single edge controlled pwm outputs require only one match re gister each, since the repetition rate is the same for all pwm outputs. multiple single edge contro lled pwm outputs will all have a rising edge at the beginning of each pwm cycle, when an mr0 match occurs. three match registers can be used to provid e a pwm output with both edges controlled. again, the mr0 match register controls th e pwm cycle rate. the other match registers control the two pwm edge positions. additi onal double edge controlled pwm outputs require only two match registers each, since the repetition rate is the same for all pwm outputs. with double edge controlled pwm outputs, spec ific match registers control the rising and falling edge of the output. this allows both positive going pwm pulses (when the rising edge occurs prior to the falling edge), and negative goi ng pwm pulses (when the falling edge occurs prior to the rising edge). 6.17.1 features ? seven match registers allow up to six single edge controlled or three double edge controlled pwm outputs, or a mix of both types. ? the match registers also allow: ? continuous operation with optional interrupt generation on match. ? stop timer on match with optional interrupt generation. ? reset timer on match with optional interrupt generation. ? supports single edge controlled and/or double edge controlled pwm outputs. single edge controlled pwm outputs all go high at the beginning of each cycle unless the output is a constant low. double edge co ntrolled pwm outputs can have either edge occur at any position within a cycle. this a llows for both positive going and negative going pulses. ? pulse period and width can be any number of timer counts. this allows complete flexibility in the trad e-off between resolution and re petition rate. all pwm outputs will occur at the same repetition rate. ? double edge controlled pwm outputs can be programmed to be either positive going or negative going pulses.
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 22 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers ? match register updates are synchronized wit h pulse outputs to prevent generation of erroneous pulses. software must ?release? new match values before they can become effective. ? may be used as a standard timer if the pwm mode is not enabled. ? a 32-bit timer/counter with a programmable 32-bit prescaler. 6.18 system control 6.18.1 crystal oscillator on-chip integrated osc illator operates with external cryst al in range of 1 mhz to 30 mhz and with external oscillator up to 50 mhz. the oscillator ou tput frequency is called f osc and the arm processor clock frequency is referred to as cclk for purposes of rate equations, etc. f osc and cclk are the same value unless the pll is running and connected. refer to section 6.18.2 ? pll ? for additional information. 6.18.2 pll the pll accepts an input clock frequency in the range of 10 mhz to 25 mhz. the input frequency is multiplied up into the range of 10 mhz to 60 mhz with a current controlled oscillator (cco). the mu ltiplier can be an integer value from 1 to 32 (in practice, the multiplier value cannot be higher than 6 on this family of microcontrollers due to the upper frequency limit of the cpu). the cco operates in the range of 156 mhz to 320 mhz, so there is an additional divider in the loop to keep the cco within its frequency range while the pll is providing the desired output frequenc y. the output divider may be set to divide by 2, 4, 8, or 16 to produce the output clock. since the minimum output divider value is 2, it is insured that the pll output has a 50 % duty cycle. the pll is turned off and bypassed following a chip reset and may be enabled by software. the program must configure and activate the pll, wait for the pll to lock, then connect to the pll as a clock source. the pll settling time is 100 ? s. 6.18.3 reset and wake-up timer reset has two source s on the lpc2131/32/ 34/36/38: the reset pin and watchdog reset. the reset pin is a schmitt trigger input pin with an additional glitch filter. assertion of chip reset by any source starts the wake-up timer (see wake-up timer description below), causing the internal chip reset to remain asserted until the external reset is de-asserted, the oscillator is running, a fixed number of clocks have passed, and the on-chip flash controller has complete d its initialization. when the internal reset is removed, the proces sor begins executing at address 0, which is the reset vector. at that point, all of the processor and peripheral registers have been initialized to prede termined values. the wake-up timer ensures that the oscillator and other anal og functions required for chip operation are fully functional before the proce ssor is allowed to exec ute instructions. this is important at power on, all types of reset, and whenever any of the aforementioned functions are turned off for any reason. since the oscillator and other functions are turned off during power-down mode, any wake-up of the processor from power-down mode makes use of the wake-up timer.
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 23 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers the wake-up timer monitors the crystal oscillator as the means of checking whether it is safe to begin code execution. when power is applied to the chip, or some event caused the chip to exit powe r-down mode, some time is required for the oscillator to produce a signal of sufficient amplitude to drive the clock logic. the amount of time depends on many factors, including the rate of v dd ramp (in the case of power on), the type of crystal and its electrical characteristics (if a quartz cr ystal is used), as well as any other external circuitry (e.g. capacitors), and the characteristics of the oscilla tor itself under the existing ambient conditions. 6.18.4 brownout detector the lpc2131/32/34/36/38 include 2-stage monitoring of the voltage on the v dd pins. if this voltage falls below 2.9 v, the bod asserts an interrupt signal to the vectored interrupt controller. this signal can be enabled for interrupt; if not, software can monitor the signal by reading dedicated register. the second stage of low-voltage detection asserts reset to inactivate the lpc2131/32/34/36/38 when the voltage on the v dd pins falls below 2.6 v. this reset prevents alteration of the flash as operation of the various elements of the chip would otherwise become unreliable due to low volt age. the bod circuit maintains this reset down below 1 v, at which point the por circuitry maintains the overall reset. both the 2.9 v and 2.6 v thresholds include some hysteresis. in normal operation, this hysteresis allows the 2.9 v detection to relia bly interrupt, or a regularly-executed event loop to sense the condition. features available only in lp c213x/01 parts include ability to put the bod in power-down mode, turn it on or off and to control when the bod will reset the lpc213x/01 microcontroller. this can be used to further reduce power consumption when a low power mode (such as power down) is invoked. 6.18.5 code security this feature of the lpc2131/32/ 34/36/38 allow an application to control whether it can be debugged or protected from observation. if after reset on-chip bootloader detects a valid checksum in flash and reads 0x8765 4321 from address 0x1f c in flash, debugging will be disabled and thus the code in flash will be protected from observation. once debugging is disabled, it can be enabled only by performing a full chip erase using the isp. 6.18.6 external interrupt inputs the lpc2131/32/34/36/38 include up to nine edge or level sensitive external interrupt inputs as selectable pin functions. when the pins are combined, external events can be processed as four independent interrupt si gnals. the external interrupt inputs can optionally be used to wake up the processor from power-down mode. 6.18.7 memory mapping control the memory mapping control alters the mapp ing of the interrupt vectors that appear beginning at address 0x0000 0000. vectors may be mapped to the bottom of the on-chip flash memory, or to the on-chip static ram. this allows code runnin g in different memory spaces to have control of the interrupts.
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 24 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers 6.18.8 power control the lpc2131/32/34/36/38 support two reduced power modes: idle mode and power-down mode. in idle mode, execution of instructions is suspended until either a reset or interrupt occurs. peripheral functions continue operation duri ng idle mode and may generate interrupts to cause the processor to resume execution. idle mode eliminates power used by the processor itself, memory systems and related controllers, and internal buses. in power-down mode, the oscillator is shut down and the chip receives no internal clocks. the processor state and registers, peripheral registers, and internal sram values are preserved throughout power-down mode and th e logic levels of chip output pins remain static. the power-down mode can be terminated and normal operation resumed by either a reset or certain specific interrupts that are able to function without clocks. since all dynamic operation of the chip is suspended, power-down mode reduces chip power consumption to nearly zero. selecting an external 32 khz clock instead of the pclk as a clock-source for the on-chip rtc will enable the microcontroller to have the rtc active during power-down mode. power-down current is increased with rtc active. however, it is significantly lower than in idle mode. a power control for peripherals feature allows individual peripherals to be turned off if they are not needed in the application, resulting in additional power savings. 6.18.9 apb bus the apb divider determines the relationship between the proc essor clock (cclk) and the clock used by peripheral devices (pclk). the apb divider serv es two purposes. the first is to provide peripher als with the desired pclk via apb bu s so that they can operate at the speed chos en for the arm processor. in order to achieve this, the apb bus may be slowed down to 1 2 to 1 4 of the processor clock rate. because the apb bus must work properly at power-up (and its timing cannot be altered if it does not work since the apb divider control registers reside on the apb bus), the default condition at reset is for the apb bus to run at 1 4 of the processor clock rate. the second purpose of the apb divider is to allow power savings when an application does not require any peripherals to run at the full processor rate. because the apb divider is connected to the pll output, the pll remains active (if it was running) during idle mode. 6.19 emulation and debugging the lpc2131/32/34/36/38 supp ort emulation and debugging via a jtag serial port. a trace port allows tracing program execution. debugging and trace functions are multiplexed only with gpios on port 1. th is means that all communication, timer and interface peripherals residing on port 0 are available during the development and debugging phase as they are when the applicat ion is run in the embedded system itself. 6.19.1 embeddedice standard arm embeddedice logic provides on-chip debug support. the debugging of the target system requires a host computer running the debugger software and an embeddedice protocol convertor. embeddedice protocol convertor converts the remote debug protocol commands to the jtag data needed to access the arm core.
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 25 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers the arm core has a debug communication channel function built-in. the debug communication channel allows a program running on the target to communicate with the host debugger or another separate host without stopping the program flow or even entering the debug state. the debug communication channel is accessed as a co-processor 14 by the program running on the arm7tdmi-s core. the debug communication channel allows the jtag port to be used for sending and receiving data without affecting the normal program flow. the debug communication channel data and control registers are mapped in to addresses in the embeddedice logic. 6.19.2 embedded trace since the lpc2131/32/34/36/38 have significa nt amounts of on-chip memory, it is not possible to determine how the processor core is operating simply by observing the external pins. the embedded trace macrocell provides re al-time trace capability for deeply embedded processor cores. it outputs information about processor execution to the trace port. the etm is connected directly to the arm core and not to the main amba system bus. it compresses the trace information and exports it through a narrow trace port. an external trace port analyzer must capture the trace information under software debugger control. instruction trace (or pc trace) shows the flow of execution of the processor and provides a list of all the instructions that were executed. instruction trace is significantly compressed by only broadcasting branch addresses as well as a set of status signals that indicate the pipeline status on a cycle by cycle basis. trace information generation can be controlled by selecting the trigger resource. trigger resources include address comparators, counters and sequencers. since trace information is compressed the software debugger requires a static image of the code being exec uted. self-modifying code can not be traced because of this restriction. 6.19.3 realmonitor realmonitor is a configurable software module, developed by arm inc., which enables real time debug. it is a lightweight debug monitor that runs in the background while users debug their foreground application. it communi cates with the host using the dcc, which is present in the embeddedice logic. the lpc2131/32/34/36/38 contain a specific configuration of realmonitor software programmed into the on-chip flash memory.
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 26 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers 7. limiting values [1] the following applies to the limiting values: a) this product includes circuitry specif ically designed for the protection of its in ternal devices from the damaging effects of excessive static charge. nonetheless, it is sugges ted that conventional precautions be tak en to avoid applying greater than the rated maximum. b) parameters are valid over operating te mperature range unless otherwise specifi ed. all voltages are with respect to v ss unless otherwise noted. [2] including voltage on outputs in 3-state mode. [3] not to exceed 4.6 v. [4] the peak current is limited to 25 times the corresponding maximum current. [5] dependent on package type. [6] human body model: equivalent to dischar ging a 100 pf capacitor through a 1.5 k ? series resistor. table 5. limiting values in accordance with the absolute ma ximum rating system (iec 60134). [1] symbol parameter conditions min max unit v dd supply voltage (core and external rail) ? 0.5 +3.6 v v dda analog 3.3 v pad supply voltage ? 0.5 +4.6 v v i(vbat) input voltage on pin vbat for the rtc ? 0.5 +4.6 v v i(vref) input voltage on pin vref ? 0.5 +4.6 v v ia analog input voltage on adc related pins ? 0.5 +5.1 v v i input voltage 5 v tolerant i/o pins; only valid when the v dd supply voltage is present [2] ? 0.5 +6.0 v other i/o pins [2] [3] ? 0.5 v dd + 0.5 v i dd supply current per supply pin [4] -1 0 0m a i ss ground current per ground pin [4] -1 0 0m a i sink sink current for i 2 c-bus; dc; t = 85 ?c -20 ma t stg storage temperature [5] ? 40 +125 ?c p tot(pack) total power dissipation (per package) based on package heat transfer, not device power consumption -1 . 5w v esd electrostatic discharge voltage human body model [6] all pins ? 4000 +4000 v
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 27 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers 8. static characteristics table 6. static characteristics t amb = ? 40 ? c to +85 ? c for commercial applications, unless otherwise specified. symbol parameter conditions min typ [1] max unit v dd supply voltage (core and external rail) 3.0 3.3 3.6 v v dda analog 3.3 v pad supply voltage 2.5 3.3 3.6 v v i(vbat) input voltage on pin vbat [2] 2.0 3.3 3.6 v v i(vref) input voltage on pin vref 2.5 3.3 3.6 v standard port pins, reset , p1.26/rtck i il low-level input current v i = 0 v; no pull-up - - 3 ? a i ih high-level input current v i =v dd ; no-pull-down - - 3 ? a i oz off-state output current v o =0v; v o =v dd ; no pull-up/down --3 ? a i latch i/o latch-up current ? (0.5v dd ) < v i < (1.5v dd ); t j <125 ? c - - 100 ma v i input voltage pin configured to provide a digital function [3] [4] [5] [6] 0-5 . 5v v o output voltage output active 0 - v dd v v ih high-level input voltage 2.0 - - v v il low-level input voltage - - 0.8 v v hys hysteresis voltage 0.4 - - v v oh high-level output voltage i oh = ? 4 ma [7] v dd ? 0.4 - - v v ol low-level output voltage i ol = ? 4 ma [7] --0 . 4v i oh high-level output current v oh =v dd ? 0.4 v [7] ? 4- - ma i ol low-level output current v ol = 0.4 v [7] 4--m a i ohs high-level short-circuit output current v oh =0 v [8] -- ? 45 ma i ols low-level short-circuit output current v ol =v dda [8] --5 0m a i pd pull-down current v i =5v [9] 10 50 150 ? a i pu pull-up current v i =0 v [10] ? 15 ? 50 ? 85 ? a v dd < v i < 5 v [9] 000 ? a i dd(act) active mode supply current v dd = 3.3 v; t amb =25 ?c; code while(1){} executed from flash, no active peripherals cclk = 10 mhz - 10 - ma cclk = 60 mhz - 40 - ma i dd(pd) power-down mode supply current v dd = 3.3 v; t amb =25 ? c-6 0- ? a v dd = 3.3 v; t amb =85 ?c - 200 500 ? a
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 28 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers [1] typical ratings are not guaranteed. the va lues listed are at room temperature (25 ? c), nominal supply voltages. [2] the rtc typically fails when v i(vbat) drops below 1.6 v. [3] including voltage on outputs in 3-state mode. i batpd power-down mode battery supply current rtc clock = 32 khz (from rtcxn pins); t amb =25 ?c v dd = 3.0 v; v i(vbat) =2.5v [11] -1 4- ? a v dd = 3.0 v; v i(vbat) =3.0v - 16 - ? a v dd = 3.3 v; v i(vbat) =3.3v - 18 - ? a v dd = 3.6 v; v i(vbat) =3.6v - 20 - ? a i batact active mode battery supply current cclk = 60 mhz; pclk = 15 mhz; pclk enabled to rtck; rtc clock = 32 khz (from rtcxn pins); t amb =25 ?c v dd = 3.0 v; v i(vbat) =3.0v [11] -7 8- ? a v dd = 3.3 v; v i(vbat) =3.3v - 80 - ? a v dd = 3.6 v; v i(vbat) =3.6v - 82 - ? a i batact(opt) optimized active mode battery supply current pclk disabled to rtck in the pconp register; rtc clock = 32 khz (from rtcxn pins); t amb =25 ?c; v i(vbat) =3.3v cclk = 6 mhz [11] [12] -2 1- ? a cclk = 25 mhz - 23 - ? a cclk = 50 mhz - 27 - ? a cclk = 60 mhz - 30 - ? a i 2 c-bus pins v ih high-level input voltage 0.7v dd --v v il low-level input voltage - - 0.3v dd v v hys hysteresis voltage - 0.05v dd -v v ol low-level output voltage i ols =3 ma [7] --0 . 4v i li input leakage current v i =v dd [13] -24 ? a v i =5v [13] -1 02 2 ? a oscillator pins v i(xtal1) input voltage on pin xtal1 ? 0.5 1.8 1.95 v v o(xtal2) output voltage on pin xtal2 ? 0.5 1.8 1.95 v v i(rtcx1) input voltage on pin rtcx1 ? 0.5 1.8 1.95 v v o(rtcx2) output voltage on pin rtcx2 ? 0.5 1.8 1.95 v table 6. static characteristics ?continued t amb = ? 40 ? c to +85 ? c for commercial applications, unless otherwise specified. symbol parameter conditions min typ [1] max unit
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 29 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers [4] v dd supply voltages must be present. [5] 3-state outputs go into 3-state mode when v dd is grounded. [6] please also see the errata note mentioned in the errata sheet. [7] accounts for 100 mv voltage drop in all supply lines. [8] only allowed for a short time period. [9] minimum condition for v i = 4.5 v, maximum condition for v i =5.5v. [10] applies to p1.16 to p1.25. [11] on pin vbat. [12] optimized for low battery consumption. [13] to v ss . 9. dynamic characteristics [1] parameters are valid over operating tem perature range unless otherwise specified. [2] typical ratings are not guaranteed. the va lues listed are at room temperature (25 ? c), nominal supply voltages. [3] bus capacitance c b in pf, from 10 pf to 400 pf. table 7. dynamic characteristics t amb = ? 40 ? c to +85 ? c for commercial applications, v dd over specified ranges. [1] symbol parameter conditions min typ [2] max unit external clock f osc oscillator frequency 10 - 25 mhz t cy(clk) clock cycle time 40 - 100 ns t chcx clock high time t cy(clk) ? 0.4 - - ns t clcx clock low time t cy(clk) ? 0.4 - - ns t clch clock rise time - - 5 ns t chcl clock fall time - - 5 ns port pins (excep t p0.2 and p0.3) t r(o) output rise time - 10 - ns t f(o) output fall time - 10 - ns i 2 c-bus pins (p0.2 and p0.3) t f(o) output fall time v ih to v il 20 + 0.1 ? c b [3] --ns
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 30 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers 9.1 timing 9.2 lpc2138 power consumption measurements fig 7. external clock timing (with an amplitude of at least v i(rms) = 200 mv) t chcl t clcx t chcx t cy(clk) t clch 002aaa907 test conditions: code executed from flash; all peripherals are enabled in pconp register; pclk = cclk/4. (1) v dd = 3.6 v at ? 60 ? c (max) (2) v dd = 3.6 v at 140 ? c (3) v dd = 3.6 v at 25 ? c (4) v dd = 3.3 v at 25 ? c (typical) (5) v dd = 3.3 v at 95 ? c (typical) fig 8. i dd(act) measured at different frequencies (cclk) and temperatures 002aab404 20 10 30 40 0 frequency (mhz) 0 60 40 20 10 50 30 (1) (2) (3) (4) (5) i dd (ma)
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 31 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers test conditions: idle mode entered executing code from flash; all peripherals ar e enabled in pconp register; pclk = cclk/4. (1) v dd = 3.6 v at 140 ? c (max) (2) v dd = 3.6 v at ? 60 ? c (3) v dd = 3.6 v at 25 ? c (4) v dd = 3.3 v at 25 ? c (typical) (5) v dd = 3.3 v at 95 ? c (typical) fig 9. i dd idle measured at different frequencies (cclk) and temperatures frequency (mhz) 0 60 (1) (2) (3) (4) (5) 40 20 10 50 30 002aab403 5 10 15 0 i dd (ma) test conditions: power-down mode entered executing code from flash; all peripherals are enabled in pconp register. (1) v dd = 3.6 v (2) v dd = 3.3 v (max) (3) v dd = 3.0 v (4) v dd = 3.3 v (typical) fig 10. i dd(pd) measured at different temperatures 002aab405 200 300 100 400 500 0 temp (c) ?60 140 100 20 60 ?20 i dd (a) (1) (2) (3) (4)
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 32 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers 10. adc electrical characteristics [1] conditions: v ssa =0v, v dda =3.3v. [2] the adc is monotonic, there are no missing codes. [3] the differential linearity error (e d ) is the difference between the actual step width and the ideal step width. see figure 11 . [4] the integral non-linearity (e l(adj) ) is the peak difference between the center of the st eps of the actual and the ideal transfer curve after appropriate adjustment of gain and offset errors. see figure 11 . [5] the offset error (e o ) is the absolute difference between the straight line which fits the actual cu rve and the straight line which fits the ideal curve. see figure 11 . [6] the gain error (e g ) is the relative difference in percent between the straight line fitting the actual transfe r curve after removing offset error, and the straight line which fits the ideal transfer curve. see figure 11 . [7] the absolute error (e t ) is the maximum difference between the center of the steps of the actual transfer curve of the non-calibrated adc and the ideal transfer curve. see figure 11 . [8] see figure 11 . table 8. adc static characteristics v dda = 2.5 v to 3.6 v; t amb = ? 40 ? c to +85 ? c unless otherwise specified; adc frequency 4.5 mhz. symbol parameter conditions min typ max unit v ia analog input voltage 0 - v dda v c ia analog input capacitance - - 1 pf e d differential linearity error [1] [2] [3] --? 1lsb e l(adj) integral non-linearity [1] [4] --? 2lsb e o offset error [1] [5] --? 3lsb e g gain error [1] [6] --? 0.5 % e t absolute error [1] [7] --? 4lsb r vsi voltage source interface resistance [8] --4 0k ?
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 33 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers (1) example of an actual transfer curve. (2) the ideal transfer curve. (3) differential linearity error (e d ). (4) integral non-linearity (e l(adj) ). (5) center of a step of the actual transfer curve. fig 11. adc characteristics 1023 1022 1021 1020 1019 (2) (1) 1024 1018 1019 1020 1021 1022 1023 7 123456 7 6 5 4 3 2 1 0 1018 (5) (4) (3) 1 lsb (ideal) code out offset error e o gain error e g offset error e o v ia (lsb ideal ) 002aae604 v i(vref) ? v ssa 1024 1 lsb =
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 34 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers fig 12. suggested adc interface - lpc2131/32/34/36 /38 adx.y pin lpc2131/32/34/36/38 adx.y sample adx.y 20 k 3 pf 5 pf r vsi v ss v ext 002aad452
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 35 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers 11. dac electrical characteristics table 9. dac electrical characteristics v dda = 3.0 v to 3.6 v; t amb = ? 40 ? c to +85 ? c unless otherwise specified symbol parameter conditions min typ max unit e d differential linearity error - ? 1- lsb e l(adj) integral non-linearity - ? 1.5 - lsb e o offset error - 0.6 - % e g gain error - 0.6 - % c l load capacitance - 200 - pf r l load resistance 1 - - k ?
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 36 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers 12. application information 12.1 crystal oscillator xtal input and component selection the input voltage to the on-chip oscillators is limited to 1.8 v. if the oscillator is driven by a clock in slave mode, it is recommended that th e input be coupled through a capacitor with c i = 100 pf. to limit the input voltage to the specified range, choose an additional capacitor to ground c g which attenuates the input voltage by a factor c i / (c i + c g ). in slave mode, a minimum of 200 mv (rms) is needed. in slave mode the input clock signal should be coupled by means of a capacitor of 100 pf ( figure 13 ), with an amplitude between 200 mv (rms) and 1000 mv (rms). this corresponds to a square wave signal with a signal swing of between 280 mv and 1.4 v. the xtal2 pin in this configurat ion can be left unconnected. external components and models used in oscillation mode are shown in figure 14 and in ta b l e 1 0 and table 11 . since the feedback resistance is integrated on chip, only a crystal and the capacitances c x1 and c x2 need to be connected externally in case of fundamental mode oscillation (the fundamental frequenc y is represen ted by l, c l and r s ). capacitance c p in figure 14 represents the parallel package capacitance and should not be larger than 7 pf. parameters f osc , c l , r s and c p are supplied by the crystal manufacturer. fig 13. slave mode operation of the on-chip oscillator lpc2xxx xtal1 c i 100 pf c g 002aae718
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 37 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers fig 14. oscillator modes and models: oscillation mode of operation and external crystal model used for c x1 /c x2 evaluation table 10. recommended values for c x1 /c x2 in oscillation mode (crystal and external components parameters): low frequency mode fundamental oscillation frequency f osc crystal load capacitance c l maximum crystal series resistance r s external load capacitors c x1 /c x2 1 mhz to 5 mhz 10 pf < 300 ? 18 pf, 18 pf 20 pf < 300 ? 39 pf, 39 pf 30 pf < 300 ? 57 pf, 57 pf 5 mhz to 10 mhz 10 pf < 300 ? 18 pf, 18 pf 20 pf < 200 ? 39 pf, 39 pf 30 pf < 100 ? 57 pf, 57 pf 10 mhz to 15 mhz 10 pf < 160 ? 18 pf, 18 pf 20 pf < 60 ? 39 pf, 39 pf 15 mhz to 20 mhz 10 pf < 80 ? 18 pf, 18 pf table 11. recommended values for c x1 /c x2 in oscillation mode (crystal and external components parameters): high frequency mode fundamental oscillation frequency f osc crystal load capacitance c l maximum crystal series resistance r s external load capacitors c x1 , cx2 15 mhz to 20 mhz 10 pf < 180 ? 18 pf, 18 pf 20 pf < 100 ? 39 pf, 39 pf 20 mhz to 25 mhz 10 pf < 160 ? 18 pf, 18 pf 20 pf < 80 ? 39 pf, 39 pf 002aag469 lpc2xxx xtal1 xtal2 c x2 c x1 xtal = c l c p r s l
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 38 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers 12.2 rtc 32 khz oscillat or component selection the rtc external oscillator circuit is shown in figure 15 . since the feedback resistance is integrated on chip, only a crystal, the capacitances c x1 and c x2 need to be connected externally to the microcontroller. ta b l e 1 2 gives the crystal parameters that should be used. c l is the typical load capacitance of the crystal and is usually specified by the crystal manufacturer. the actual c l influences oscillation freq uency. when using a crystal that is manufactured for a different load capacitance, the circuit will os cillate at a slightly different frequency (depending on the quality of the crystal) comp ared to the specified one. therefore for an accurate time reference it is advised to use the load capacitors as specified in ta b l e 1 2 that belong to a specific c l . the value of external capacitances c x1 and c x2 specified in this table are calculated from the internal parasitic capacitances and the c l . parasitics from pcb and package are not taken into account. 12.3 xtal and rtcx printed circui t board (pcb) layout guidelines the crystal should be connected on the pcb as close as poss ible to the oscillator input and output pins of the chip. take care that the load capacitors c x1 , c x2 , and c x3 in case of third overtone crystal usage have a common ground plane. the external components must also be connected to the ground plane. loops must be made as small as possible in order to keep the noise coupled in via the pcb as small as possible. also parasitics should stay as small as possible. values of c x1 and c x2 should be chosen smaller accordingly to the increase in parasitics of the pcb layout. fig 15. rtc oscillator modes and models: oscillation mode of operation and external crystal model used for c x1 /c x2 evaluation table 12. recommended values for the rtc external 32 khz oscillator c x1 /c x2 components crystal load capacitance c l maximum crystal series resistance r s external load capacitors c x1 /c x2 11 pf < 100 k ? 18 pf, 18 pf 13 pf < 100 k ? 22 pf, 22 pf 15 pf < 100 k ? 27 pf, 27 pf 002aaf495 lpc2xxx rtcx1 rtcx2 c x2 c x1 32 khz xtal = c l c p r s l
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 39 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers 13. package outline fig 16. package outline sot314-2 (lqfp64) unit a max. a 1 a 2 a 3 b p ce (1) eh e ll p z ywv references outline version european projection issue date iec jedec jeita mm 1.6 0.20 0.05 1.45 1.35 0.25 0.27 0.17 0.18 0.12 10.1 9.9 0.5 12.15 11.85 1.45 1.05 7 0 o o 0.12 0.1 1 0.2 dimensions (mm are the original dimensions) note 1. plastic or metal protrusions of 0.25 mm maximum per side are not included. 0.75 0.45 sot314-2 ms-026 136e10 00-01-19 03-02-25 d (1) (1)(1) 10.1 9.9 h d 12.15 11.85 e z 1.45 1.05 d b p e e a 1 a l p detail x l (a ) 3 b 16 c d h b p e h a 2 v m b d z d a z e e v m a x 1 64 49 48 33 32 17 y pin 1 index w m w m 0 2.5 5 mm scale lqfp64: plastic low profile quad flat package; 64 leads; body 10 x 10 x 1.4 mm sot314-2
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 40 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers fig 17. package outline sot804-2 (hvqfn64) unit a max. a 1 d 1 a 4 bc e e h l e 1 ywv references outline version european projection issue date iec jedec jeita mm 1 0.05 0.00 0.80 0.65 0.30 0.18 0.5 7.5 e 2 7.5 0.2 7.25 6.95 d h 7.25 6.95 0.05 0.05 y 1 0.1 0.1 dimensions (mm are the original dimensions) 0.5 0.3 sot804-2 - - - mo-220 - - - 04-03-25 d 9.05 8.95 e 49 64 32 17 48 1 33 16 9.05 8.95 e 1 8.95 8.55 8.95 8.55 a detail x a 4 a 1 c d d 1 d h e 1 e hvqfn64: plastic thermal enhanced very thin quad flat package; no leads; 64 terminals; body 9 x 9 x 0.85 mm sot804-2 0 5 10 mm scale e e b y y 1 c c b a ac c b v m w m e 1 e 2 e h l terminal 1 index area terminal 1 index area 1/2 e 1/2 e x
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 41 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers 14. abbreviations table 13. acronym list acronym description a/d analog-to-digital adc analog-to-digital converter ahb advanced high-performance bus amba advanced microcontroller bus architecture apb advanced peripheral bus bod brownout detection cpu central processing unit dac digital-to-analog converter dcc debug communications channel etm embedded trace macrocell fifo first in, first out gpio general purpose input/output jtag joint test action group lsb least significant bit pll phase-locked loop por power-on reset pwm pulse width modulator ram random access memory spi serial peripheral interface sram static random access memory ssp synchronous serial port uart universal asynchronous receiver/transmitter
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 42 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers 15. revision history table 14. revision history document id release date data sheet status change notice supersedes lpc2131_32_34_36_38 v.5.1 20110729 product data sheet - lpc2131_32_34_36_38 v.5 modifications: ? parameter i sink added in table 5 ? limiting values ? . ? table 6 ? static characteristics ? : updated crystal oscillator specs lpc2131_32_34_36_38 v.5 20110202 product data sheet - lpc2131_32_34_36_38 v.4 modifications: ? table 3 ? pin description ? : added table note [9] to rtcx1 and rtcx2 pins. ? table 6 ? static characteristics ? , i 2 c-bus pins: changed typical hysteresis voltage from 0.5v dd to 0.05v dd . ? table 6 ? static characteristics ? : removed table note for v ih and v il . ? changed all occurrences of vpb to apb. ? table 6 ? static characteristics ? : added table note [6] to v i . ? table 6 ? static characteristics ? , standard port pins, reset , rtck: v hys hysteresis voltage (0.4 v) moved from typical to minimum. ? table 6 ? static characteristics ? : changed v i(vref) minimum voltage from 3.0 v to 2.5 v. ? table 6 ? static characteristics ? : updated min, typical and max values for oscillator pins v i(xtal1) , v o(xtal2) , v i(rtcx1) , and v o(rtcx2) . ? added section 11 ? dac electrical characteristics ? . ? added section 12 ? application information ? . lpc2131_32_34_36_38 v.4 20071016 product data sheet - lpc2131_32_34_36_38 v.3 lpc2131_32_34_36_38 v.3 20060921 product data sheet - lpc2131_32_34_36_38 v.2 lpc2131_32_34_36_38 v.2 20050318 preliminary data sheet - lpc2131_2132_2138 v.1 lpc2131_2132_2138 v.1 20041118 preliminary data sheet - -
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 43 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers 16. legal information 16.1 data sheet status [1] please consult the most recently issued document before initiating or completing a design. [2] the term ?short data sheet? is explained in section ?definitions?. [3] the product status of device(s) described in this document may have changed since this document was published and may differ in case of multiple device s. the latest product status information is available on the internet at url http://www.nxp.com . 16.2 definitions draft ? the document is a draft versi on only. the content is still under internal review and subject to formal approval, which may result in modifications or additions. nxp semiconductors does not give any representations or warranties as to the accuracy or completeness of information included herein and shall hav e no liability for the consequences of use of such information. short data sheet ? a short data sheet is an extract from a full data sheet with the same product type number(s) and title. a short data sheet is intended for quick reference only and should not be relied upon to contain detailed and full information. for detailed and full information see the relevant full data sheet, which is available on request vi a the local nxp semiconductors sales office. in case of any inconsistency or conflict with the short data sheet, the full data sheet shall prevail. product specification ? the information and data provided in a product data sheet shall define the specification of the product as agreed between nxp semiconductors and its customer , unless nxp semiconductors and customer have explicitly agreed otherwis e in writing. in no event however, shall an agreement be valid in which the nxp semiconductors product is deemed to offer functions and qualities beyond those described in the product data sheet. 16.3 disclaimers limited warranty and liability ? information in this document is believed to be accurate and reliable. however, nxp semiconductors does not give any representations or warranties, expressed or implied, as to the accuracy or completeness of such information and shall have no liability for the consequences of use of such information. in no event shall nxp semiconductors be liable for any indirect, incidental, punitive, special or consequential damages (including - without limitation - lost profits, lost savings, business interruption, costs related to the removal or replacement of any products or rework charges) whether or not such damages are based on tort (including negligence), warranty, breach of contract or any other legal theory. notwithstanding any damages that customer might incur for any reason whatsoever, nxp semiconductors? aggregate and cumulative liability towards customer for the products described herein shall be limited in accordance with the terms and conditions of commercial sale of nxp semiconductors. right to make changes ? nxp semiconductors reserves the right to make changes to information published in this document, including without limitation specifications and product descriptions, at any time and without notice. this document supersedes and replaces all information supplied prior to the publication hereof. suitability for use ? nxp semiconductors products are not designed, authorized or warranted to be suitable for use in life support, life-critical or safety-critical systems or equipment, nor in applications where failure or malfunction of an nxp semiconductors product can reasonably be expected to result in personal injury, death or severe property or environmental damage. nxp semiconductors accepts no liability for inclusion and/or use of nxp semiconductors products in such equipment or applications and therefore such inclusion and/or use is at the customer?s own risk. applications ? applications that are described herein for any of these products are for illustrative purpos es only. nxp semiconductors makes no representation or warranty that such applications will be suitable for the specified use without further testing or modification. customers are responsible for the design and operation of their applications and products using nxp semiconductors products, and nxp semiconductors accepts no liability for any assistance with applications or customer product design. it is customer?s sole responsibility to determine whether the nxp semiconductors product is suitable and fit for the customer?s applications and products planned, as well as fo r the planned application and use of customer?s third party customer(s). customers should provide appropriate design and operating safeguards to minimize the risks associated with their applications and products. nxp semiconductors does not accept any liability related to any default, damage, costs or problem which is based on any weakness or default in the customer?s applications or products, or the application or use by customer?s third party customer(s). customer is responsible for doing all necessary testing for the customer?s applic ations and products using nxp semiconductors products in order to av oid a default of the applications and the products or of the application or use by customer?s third party customer(s). nxp does not accept any liability in this respect. limiting values ? stress above one or more limiting values (as defined in the absolute maximum ratings system of iec 60134) will cause permanent damage to the device. limiting values are stress ratings only and (proper) operation of the device at these or any other conditions above those given in the recommended operating conditions section (if present) or the characteristics sections of this document is not warranted. constant or repeated exposure to limiting values will permanently and irreversibly affect the quality and reliability of the device. terms and conditions of commercial sale ? nxp semiconductors products are sold subject to the gener al terms and conditions of commercial sale, as published at http://www.nxp.com/profile/terms , unless otherwise agreed in a valid written individual agreement. in case an individual agreement is concluded only the terms and conditions of the respective agreement shall apply. nxp semiconductors hereby expressly objects to applying the customer?s general terms and conditions with regard to the purchase of nxp semiconducto rs products by customer. no offer to sell or license ? nothing in this document may be interpreted or construed as an offer to sell products t hat is open for acceptance or the grant, conveyance or implication of any lic ense under any copyrights, patents or other industrial or intellectual property rights. export control ? this document as well as the item(s) described herein may be subject to export control regulations. export might require a prior authorization from national authorities. document status [1] [2] product status [3] definition objective [short] data sheet development this document contains data from the objecti ve specification for product development. preliminary [short] data sheet qualification this document contains data from the preliminary specification. product [short] data sheet production this document contains the product specification.
lpc2131_32_34_36_38 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2011. all rights reserv ed. product data sheet rev. 5.1 ? 29 july 2011 44 of 45 nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers non-automotive qualified products ? unless this data sheet expressly states that this specific nxp semicon ductors product is automotive qualified, the product is not suitable for automotive use. it is neither qualified nor tested in accordance with automotive testing or application requirements. nxp semiconductors accepts no liabili ty for inclusion and/or use of non-automotive qualified products in automotive equipment or applications. in the event that customer uses t he product for design-in and use in automotive applications to automotive specifications and standards, customer (a) shall use the product without nxp semiconductors? warranty of the product for such automotive applicat ions, use and specifications, and (b) whenever customer uses the product for automotive applications beyond nxp semiconductors? specifications such use shall be solely at customer?s own risk, and (c) customer fully indemnifies nxp semiconductors for any liability, damages or failed product claims resulting from customer design and use of the product for automotive app lications beyond nxp semiconductors? standard warranty and nxp semiconduct ors? product specifications. 16.4 trademarks notice: all referenced brands, produc t names, service names and trademarks are the property of their respective owners. i 2 c-bus ? logo is a trademark of nxp b.v. 17. contact information for more information, please visit: http://www.nxp.com for sales office addresses, please send an email to: salesaddresses@nxp.com
nxp semiconductors lpc2131/32/34/36/38 single-chip 16/32-bit microcontrollers ? nxp b.v. 2011. all rights reserved. for more information, please visit: http://www.nxp.com for sales office addresses, please se nd an email to: salesaddresses@nxp.com date of release: 29 july 2011 document identifier: lpc2131_32_34_36_38 please be aware that important notices concerning this document and the product(s) described herein, have been included in section ?legal information?. 18. contents 1 general description . . . . . . . . . . . . . . . . . . . . . . 1 2 features and benefits . . . . . . . . . . . . . . . . . . . . 1 2.1 enhancements brought by lpc213x/01 devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2.2 key features common for lpc213x and lpc213x/01 . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 3 ordering information . . . . . . . . . . . . . . . . . . . . . 2 3.1 ordering options . . . . . . . . . . . . . . . . . . . . . . . . 3 4 block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 4 5 pinning information . . . . . . . . . . . . . . . . . . . . . . 5 5.1 pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 5.2 pin description . . . . . . . . . . . . . . . . . . . . . . . . . 9 6 functional description . . . . . . . . . . . . . . . . . . 13 6.1 architectural overview . . . . . . . . . . . . . . . . . . 13 6.2 on-chip flash program memo ry . . . . . . . . . . . 13 6.3 on-chip static ram. . . . . . . . . . . . . . . . . . . . . 13 6.4 memory map. . . . . . . . . . . . . . . . . . . . . . . . . . 14 6.5 interrupt controller . . . . . . . . . . . . . . . . . . . . . 15 6.5.1 interrupt sources. . . . . . . . . . . . . . . . . . . . . . . 15 6.6 pin connect block . . . . . . . . . . . . . . . . . . . . . . 16 6.7 general purpose parallel i/o and fast i/o . . . 16 6.7.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 6.7.2 fast i/o features available in lpc213x/01 only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 6.8 10-bit adc . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 6.8.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 6.8.2 adc features availabl e in lpc213x/01 only. . 17 6.9 10-bit dac . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 6.9.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 6.10 uarts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 6.10.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 6.10.2 uart features available in lpc213x/01 only. 18 6.11 i 2 c-bus serial i/o controller . . . . . . . . . . . . . . 18 6.11.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 6.12 spi serial i/o controller. . . . . . . . . . . . . . . . . . 18 6.12.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 6.13 ssp serial i/o controller . . . . . . . . . . . . . . . . . 19 6.13.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 6.14 general purpose timers/external event counters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 6.14.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 6.15 watchdog timer. . . . . . . . . . . . . . . . . . . . . . . . 20 6.15.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 6.16 real-time clock . . . . . . . . . . . . . . . . . . . . . . . . 20 6.16.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 6.17 pulse width modulator . . . . . . . . . . . . . . . . . . 21 6.17.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 6.18 system control . . . . . . . . . . . . . . . . . . . . . . . . 22 6.18.1 crystal oscillator. . . . . . . . . . . . . . . . . . . . . . . 22 6.18.2 pll. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 6.18.3 reset and wake-up timer . . . . . . . . . . . . . . . . 22 6.18.4 brownout detector . . . . . . . . . . . . . . . . . . . . . 23 6.18.5 code security . . . . . . . . . . . . . . . . . . . . . . . . . 23 6.18.6 external interr upt inputs . . . . . . . . . . . . . . . . . 23 6.18.7 memory mapping control. . . . . . . . . . . . . . . . 23 6.18.8 power control . . . . . . . . . . . . . . . . . . . . . . . . 24 6.18.9 apb bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 6.19 emulation and debugging . . . . . . . . . . . . . . . 24 6.19.1 embeddedice . . . . . . . . . . . . . . . . . . . . . . . . 24 6.19.2 embedded trace. . . . . . . . . . . . . . . . . . . . . . . 25 6.19.3 realmonitor . . . . . . . . . . . . . . . . . . . . . . . . . . 25 7 limiting values . . . . . . . . . . . . . . . . . . . . . . . . 26 8 static characteristics . . . . . . . . . . . . . . . . . . . 27 9 dynamic characteristics. . . . . . . . . . . . . . . . . 29 9.1 timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 9.2 lpc2138 power consumption measurements 30 10 adc electrical characteristics . . . . . . . . . . . . 32 11 dac electrical characteristics . . . . . . . . . . . . 35 12 application information . . . . . . . . . . . . . . . . . 36 12.1 crystal oscillator xtal input and component selection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 12.2 rtc 32 khz oscillator component selection . 38 12.3 xtal and rtcx printed circuit board (pcb) layout guidelines . . . . . . . . . . . . . . . . . . . . . . 38 13 package outline. . . . . . . . . . . . . . . . . . . . . . . . 39 14 abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . 41 15 revision history . . . . . . . . . . . . . . . . . . . . . . . 42 16 legal information . . . . . . . . . . . . . . . . . . . . . . 43 16.1 data sheet status . . . . . . . . . . . . . . . . . . . . . . 43 16.2 definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 16.3 disclaimers . . . . . . . . . . . . . . . . . . . . . . . . . . 43 16.4 trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . 44 17 contact information . . . . . . . . . . . . . . . . . . . . 44 18 contents. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45


▲Up To Search▲   

 
Price & Availability of LPC2132FBD64

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X